export const giftConfig = {
  categories: {
    normal: {
      name: '普通礼物',
      minLevel: 0,
    },
    special: {
      name: '特殊礼物',
      minLevel: 10,
    },
    super: {
      name: '超级礼物',
      minLevel: 20,
    },
  },

  items: [
    // 普通礼物
    {
      id: 'like',
      name: '点赞',
      category: 'normal',
      price: 1,
      icon: '/gifts/like.png',
      animation: 'normal',
      description: '为主播点赞',
    },
    {
      id: 'flower',
      name: '鲜花',
      category: 'normal',
      price: 5,
      icon: '/gifts/flower.png',
      animation: 'normal',
      description: '送你一朵小花花',
    },
    {
      id: 'lollipop',
      name: '棒棒糖',
      category: 'normal',
      price: 10,
      icon: '/gifts/lollipop.png',
      animation: 'normal',
      description: '甜甜的棒棒糖',
    },

    // 特殊礼物
    {
      id: 'rocket',
      name: '火箭',
      category: 'special',
      price: 100,
      icon: '/gifts/rocket.png',
      animation: 'special',
      effects: ['shake', 'particles'],
      description: '炫酷火箭特效',
    },
    {
      id: 'crown',
      name: '皇冠',
      category: 'special',
      price: 200,
      icon: '/gifts/crown.png',
      animation: 'special',
      effects: ['shine', 'particles'],
      description: '尊贵皇冠特效',
    },

    // 超级礼物
    {
      id: 'castle',
      name: '城堡',
      category: 'super',
      price: 1000,
      icon: '/gifts/castle.png',
      animation: 'super',
      effects: ['fireworks', 'screenFlash', 'shake'],
      description: '梦幻城堡特效',
    },
    {
      id: 'yacht',
      name: '游艇',
      category: 'super',
      price: 2000,
      icon: '/gifts/yacht.png',
      animation: 'super',
      effects: ['fireworks', 'screenFlash', 'shake'],
      description: '豪华游艇特效',
    },
  ],

  // 连击配置
  combo: {
    duration: 5000, // 连击有效期5秒
    thresholds: [
      { count: 3, effect: 'combo_small' },
      { count: 10, effect: 'combo_medium' },
      { count: 30, effect: 'combo_large' },
      { count: 66, effect: 'combo_super' },
      { count: 99, effect: 'combo_ultra' },
    ],
  },

  // 礼物统计周期
  statistics: {
    daily: {
      key: 'daily',
      ttl: 86400, // 24小时
    },
    weekly: {
      key: 'weekly',
      ttl: 604800, // 7天
    },
    monthly: {
      key: 'monthly',
      ttl: 2592000, // 30天
    },
  },
}
